package service

import (
	"context"
	"monoblog/common"
	"monoblog/common/register"
	"monoblog/domain/dto"
	"monoblog/domain/model"
)

func GetAccessLogService() AccessLogService {
	return register.GetInstance[AccessLogService]("AccessLogService")
}

type AccessLogService interface {
	Save(ctx context.Context, log *model.AccessLog) error

	FindPage(ctx context.Context, query dto.AccessLogQuery) (*common.PageData[*model.AccessLog], error)
}
